(
	set -euo pipefail

	readonly stow_package_name=${1:?"package name is required"}
	readonly lib=$(dirname $(realpath ${BASH_SOURCE[0]}))

	bash -c " \
		source ${lib}/apt.sh; \
		apt_ensure stow; \
	"

	readonly dotfiles_dir=$(realpath ${lib}/../../dotfiles)
	cd ${dotfiles_dir}

	mkdir -p $HOME/.config
	stow -v -t $HOME ${stow_package_name}
)

